package net.zjitc.lib.Synchronized;

/**
 * @author 朱志文
 * @data 2019/10/22 0022
 */
public class MyThreadTest {
    public static void main(String[] args) {
        MyThreadSynchronized threadSynchronized = new MyThreadSynchronized();
        Thread thread = new MyThread(threadSynchronized, 0);
        thread.start();
        Thread thread2 = new MyThread(threadSynchronized, 1);
        thread2.start();
        threadSynchronized.getCount();
        try {
            Thread.sleep(500);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
//        Thread thread3 = new MyThread(threadSynchronized, 2);
//        thread3.start();
    }
}
